package com.xinqi.common.core.constant;

/**
 * 通用常量信息
 *
 * @author dgyu
 */
public interface Constants {
    /**
     * UTF-8 字符集
     */
    String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    String GBK = "GBK";

    /**
     * www主域
     */
    String WWW = "www.";

    /**
     * http请求
     */
    String HTTP = "http://";

    /**
     * https请求
     */
    String HTTPS = "https://";

    /**
     * 成功标记
     */
    Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    Integer FAIL = 500;

    /**
     * 登录成功状态
     */
    String LOGIN_SUCCESS_STATUS = "0";

    /**
     * 登录失败状态
     */
    String LOGIN_FAIL_STATUS = "1";

    /**
     * 登录成功
     */
    String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    String LOGOUT = "Logout";

    /**
     * 注册
     */
    String REGISTER = "Register";

    /**
     * 登录失败
     */
    String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    long CAPTCHA_EXPIRATION = 10;

    /**
     * 重复发送（分钟）
     * 一分钟内请勿重复发送
     */
    long CAPTCHA_REPEATED = 1;

    /**
     * 防重提交 redis key
     */
    String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 防重提交 redis key
     */
    String SPACE_DROP = "•";

    /**
     * 双减号
     */
    String DOUBLE_REDUCE = "--";

    /**
     * WORLD后缀图标
     */
    String DOC_SUF = "doc";
    String DOCX_SUF = "docx";
    String DOCX_DROP_SUF = ".docx";
    String DOC_COL = "col_word";


    /**
     * EXCEL后缀图标
     */
    String XLS_SUF = "xls";
    String XLSX_SUF = "xlsx";
    String CSV_SUF = "csv";
    Integer MAX_COLL_NUM = 200;
    Integer MIN_COLL_NUM = 1;
    String XLS_COL = "col_xlsx";

    /**
     * PPT、PDF后缀图标
     */
    String PPT_SUF = "ppt";
    String PPTX_SUF = "pptx";
    String PDF_SUF = "pdf";
    String PPT_COL = "col_pptx";

    /**
     * ODT后缀图标
     */
    String ODT_SUF = "odt";
    String ODTX_SUF = "odtx";
    String ODT_COL = "col_odtx";

    /**
     * RAR、ZIP后缀图标
     */
    String RAR_SUF = "rar";
    String ZIP_SUF = "zip";
    String RAR_COL = "col_zip";

    /**
     * TXT后缀图标
     */
    String TXT_SUF = "txt";
    String TXT_COL = "col_txt";

    /**
     * 其他类型图标
     */
    String UNKNOW_COL = "col_unkown";

    /**
     * 新奇号最大修改次数
     */
    Integer UPDATE_XINQI_NUMBER_TIMES = 5;

}
